#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <error.h>


/*
 * 确定文件描述符数
 */


#ifdef OPEN_MAX
static long openmax = OPEN_MAX;
#else
static long openmax = 0;
#endif

#define OPEN_MAX_GUESS	256

long open_max(void)
{
	if (openmax == 0) {
		errno = 0;
		if ((openmax = sysconf(_SC_OPEN_MAX)) < 0) 
			openmax = OPEN_MAX_GUESS;
		else
			perror("sysconf error for _SC_OPEN_MAX");
	}

	return openmax;
}



int main()
{
	exit(0);
}



